#ifndef APP__H__
#define APP__H__

#include "Stroke.h"
#include "MultiClassSVM.h"
#ifdef  USE_MEMORY_MANAGER
#include "MemoryOperators.h"
#endif
class App{
private:
	static App* single; 
	Stroke m_stroke;
	MultiClassSVM m_multiClassDigit;
public:
	static App* GetInstance(){ if (!single) single = new App;
      return single;}
	void init(){
		m_stroke.Init();
	}
	void LoadData();
	void FreeMemory();
	bool AddMouseDown();
	bool AddMouseMove(int x, int y);
	bool AddMouseUp();
	void PrintPoint();
	int Recognize();
};
#endif //APP__H__